// 路由表
const routes = [
  {
    prefix: "city",
    name: "城市",
    interfaces: [
      "add",
      "delById",
      "getList",
      "findCityByName",
      "findById",
      "edit",
      "allCity"
    ]
  },
  {
    prefix: "home",
    name: "home",
    interfaces: ["getModuleInfo"]
  },
  {
    prefix: "area",
    name: "地区",
    interfaces: [
      "add",
      "delById",
      "findById",
      "getList",
      "allArea",
      "edit",
      "findByCityId"
    ]
  },
  {
    prefix: "user",
    name: "用户",
    interfaces: [
      "login",
      // "getList",
      // "checkLogin",
      // "register",
      "add",
      "logout",
      "info"
      // 通过验证码注册
      // "registerByCode",
      // "getSmsCode"
    ]
  },
  {
    prefix: "cinema",
    name: "影院",
    interfaces: ["add", "edit", "getDetail", "delById", "getList"]
  },
  {
    prefix: "film",
    name: "影片",
    interfaces: ["add", "getDetail", "upload", "delById", "getList", "edit"]
  },
  {
    prefix: "banner",
    name: "轮播图",
    interfaces: ["upload", "getList", "changStatus", "delById"]
  }
];

module.exports = routes;
